From: Giovanni Campagna Date: Wed, 29 Jan 2014 21:29:58 +0000 (+0100) Subject: NMWirelessDialog: fix removing access points X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2840 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1272eaf07f9fd19454125eed8c90dd18cf46652d;p=gnome-shell.git NMWirelessDialog: fix removing access points We must destroy the actor, not the item, because the latter doesn't have a destroy() method. https://bugzilla.gnome.org/show_bug.cgi?id=709128 --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 3dc694e15..ab67e820f 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -957,7 +957,7 @@ const NMWirelessDialog = new Lang.Class({ network.accessPoints.splice(res.ap, 1); if (network.accessPoints.length == 0) { - network.item.destroy(); + network.item.actor.destroy(); this._networks.splice(res.network, 1); } else { network.item.updateBestAP(network.accessPoints[0]);